
using System;

namespace WindowsFormsApplication1
{


	public static class ArrayUtil
	{

		
		
		public static int[] getSubArray(int[] original, int inicial, int final){
			
			int[] array = new int[final-inicial];
		
			for(int i = inicial ; i < final ; i++)
			{
				array[i-inicial] = original[i];
			}
			return array;
		
		}
		
		public static int[] getOneDimensionArray(int[,] original, int index)
		{
			int i = 0;
			int tamanho = original.Length/3;
			int[] array = new int[tamanho];
			while(i<tamanho){
				array[i] = original[index,i];
				i++;
			}
			
			return array;
		}
	}
}
